home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / XCSHELL / XCMDCONS.H < prev    next >
Text File  |  1991-08-31  |  2KB  |  61 lines

  1. //
  2. //    "XcShell" Skeletal XCMD/XFCN    constants
  3. //
  4. //    Copyright ⌐1991 Mark M. Owen -- All rights reserved
  5. //
  6.  
  7. #pragma once
  8.  
  9. //////////////////////////////////////////////////////////////
  10. //        the following constants need NO modification        //
  11. //////////////////////////////////////////////////////////////
  12. #define    DEAD            1
  13. #define    LIVE            0
  14. #define    vInError       -1
  15.  
  16. //////////////////////////////////////////////////////////////
  17. //        use unique values for the constants below             //
  18. //////////////////////////////////////////////////////////////
  19. #define    GLOBALTYPE        'pGlb'
  20. #define    GLOBALS            "\pXCMDGlobals"
  21. #define    VERBS            "\pXCMDVerbs"
  22. #define    NPARAMS            "\pXCMDNParams"
  23. #define    ERRORTAG        "\pXCMDErrorTag"
  24. #define    ERRORS            "\pXCMDErrors"
  25.  
  26. //////////////////////////////////////////////////////////////
  27. //    The entries in the verbs enumeration MUST be in the        //
  28. //    same order as the strings in the VERBS STR# resource.    //
  29. //////////////////////////////////////////////////////////////
  30. enum verbs {
  31.      vVersion
  32.     ,vDispose
  33.     
  34.     //////////////////////////////
  35.     //    Add other verbs here    //
  36.     //////////////////////////////
  37. };
  38.  
  39. //////////////////////////////////////////////////////////////
  40. //    The entries in the errors enumeration MUST be in the    //
  41. //    same order as the strings in the ERRORS STR# resource.    //
  42. //////////////////////////////////////////////////////////////
  43.  enum errors {
  44.       errNone = 0
  45.      ,errMissingFunction
  46.      ,errUnrecognizedVerb
  47.      ,errWrongParamCount
  48.      ,errParam2Invalid
  49.      ,errIndexOutOfBounds
  50.      ,errPositiveNumberRequired
  51.      ,errOneOrGreaterRequired
  52.      ,errTwoOrGreaterRequired
  53.      ,errNoMemInGeneral
  54.      ,errNonZeroRequired
  55.  
  56.     //////////////////////////////
  57.     //    Add other errors here    //
  58.     //////////////////////////////
  59. };
  60.  
  61.